package com.baixun.gascommon.config;

import io.minio.MinioClient;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class MinioConfig {


    public String userName="adminminio";


    public String passWord="adminminio";


    public String host="http://192.168.136.129:9000";



    @Bean
    public MinioClient buildMinioClient() {
        return MinioClient
                .builder()
                .credentials(userName,passWord)
                .endpoint(host)
                .build();
    }

}
